<template>
  <div class="layout-main-index">
    <Index/>
  </div>
</template>
<script>
  import Index from '~/components/content/index.vue'
  export default {
    layout: 'home',
    data () {
      return {
        count: 0
      }
    },
    components: {
      Index
    },
    beforeCreate: function () {
    },
    mounted () {
      // 首次加载页面数据
      this.$store.dispatch('content/getContentData', {
        category: this.$route.params.id, oper: 'init'
      })
    },
    methods: {
    }
  }
</script>

